using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO;
using SharksHunter.TransferObjects.Model;

namespace SharksHunter.Engine.Components
{
    public class Collector : Abstract.HunterComponent
    {
        private SharksHunter.Service.Interfaces.IFetchTranferObject _fetcher;
        public Collector(SharksHunter.Service.Interfaces.IFetchTranferObject fetcher):base()
        {
            _fetcher = fetcher;
        }

        #region override
        override protected object Process(object o)
        {
            HunterFileInfo efi = (HunterFileInfo)o;
            ItemTO[] items = _fetcher.FetchItems(efi.Entity, efi.FileInfo.Length);
            return null;
        }
        #endregion
    }
}
